package xyz.ddlnt.model.vo;

import com.alibaba.fastjson2.JSONArray;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/24 19:06
 */
@Schema( description = "帖子节点信息")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PostNodeVO {

    @Schema(description = "用户 id")
    private Long id;

    @Schema(description = "帖子目录（JSON数组）")
    private JSONArray postDirectory; // JSON 类型

    @Schema(description = "前节点标题")
    private String title;
    @Schema(description = "帖子的前节点（帖子id，没有则为0）")
    private Long prevNodeId;
    @Schema(description = "前节点类型：0 无、1 试题、2 帖子")
    private Integer prevNodeType;

    @Schema(description = "帖子的子节点")
    private List<ChildNode> childNodes;
}


